package com.hmall.api.config;

import com.hmall.api.client.ItemClient;
import com.hmall.api.fallback.ItemClientFallback;
import com.hmall.api.interceptors.UserInfoInterceptor;
import feign.Logger;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;

/**
 * @author 19436
 */
public class FeignLogLevelConfig {

    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor userInfoInterceptor(){
        return new UserInfoInterceptor();
    }


}
